package com.ldu.exam.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.UpdateTimestamp;

import lombok.Data;

@Data
@Entity
@Table(name="t_notice")
public class NoticeModel 
{
	@Id
	@Column(length=32)
	@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "jpa-uuid")
	@GenericGenerator(name = "jpa-uuid",strategy = "uuid.hex")
	private String id;
	
	/**
	 * 通知标题
	 */
	@Column(name="title")
	private String title;
	
	/**
	 * 通知内容
	 */
	@Column(name="content")
	private String content;
	
	/**
	 * 是否已读
	 */
	@Column(name="isRead")
	private String isRead;
	
	/**
	 * 被通知人
	 */
	@Column(name="accountId")
	private String accountId;
	
	/**
	 * 创建日期
	 */
	@CreationTimestamp
	private Timestamp creationDate ;
	
	/**
	 * 修改时间
	 */
	@UpdateTimestamp
	private Timestamp updateDate ;
}
